<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Inline</title>
</head>
<body>
<div th:inline="text">
    <p>Hello, [[${userName}]] !</p>
    <br/>
</div>
<script th:inline="javascript">
    var msg = 'Hello ' + [[${userName}]] + '! ';
    alert(msg);
</script>
</body>
</html>